<template>
    <view class="page">
        <view class="uni-card">
            <view class="uni-list">
                <view class="uni-list-cell" v-for="(list,index) in lists" :key="index" hover-class="uni-list-cell-hover">
                    <view class="uni-list-cell-navigate uni-navigate-right" @click="tourl(index)">
                        {{list.style.navigationBarTitleText}}
                    </view>
                </view>

            </view>

        </view>

    </view>
</template>

<script>
    import pageHead from '../../../components/page-head.vue'
    export default {
        data: {
            title: "开发列表",
            lists: [{
                "path": "pages/template/xb/addRoom",
                "style": {
                    "navigationBarTitleText": "添加教室"
                }
            },{
                "path": "pages/template/xb/roomlist",
                "style": {
                    "navigationBarTitleText": "教室列表"
                }
            },{
                "path": "pages/template/xb/subjectlist",
                "style": {
                    "navigationBarTitleText": "科目列表"
                }
            },{
                "path": "pages/template/xb/addsubject",
                "style": {
                    "navigationBarTitleText": "添加科目"
                }
            },{
                "path": "pages/template/xb/addorg",
                "style": {
                    "navigationBarTitleText": "添加机构"
                }
            },
			
			{
                "path": "pages/template/xb/orglist",
                "style": {
                    "navigationBarTitleText": "机构列表"
                }
            },
			{
				"path": "pages/template/xb/classpage",
				"style": {
					"navigationBarTitleText": "class页面"
				}
			},
			{
				"path": "pages/template/xb/classlist",
				"style": {
					"navigationBarTitleText": "班级列表"
				}
			},
			{
                "path": "pages/template/xb/addstudent",
                "style": {
                    "navigationBarTitleText": "添加学生"
                }
            },{
                "path": "pages/template/xb/studentlist",
                "style": {
                    "navigationBarTitleText": "学生列表"
                }
            },
			{
				"path": "pages/template/xb/studentdetail",
				"style": {
					"navigationBarTitleText": "学生详情"
				}
			},{
                "path": "pages/template/xb/addteacher",
                "style": {
                    "navigationBarTitleText": "添加老师"
                }
            },{
                "path": "pages/template/xb/teacherlist",
                "style": {
                    "navigationBarTitleText": "教师列表"
                }
            },{
                "path": "pages/template/xb/classdetail",
                "style": {
                    "navigationBarTitleText": "课程详情"
                }
            },{
                "path": "pages/template/xb/myself",
                "style": {
                    "navigationBarTitleText": "我的"
                }
            },{
                "path": "pages/template/xb/notifysetting",
                "style": {
                    "navigationBarTitleText": "通知设置"
                }
            },{
                "path": "pages/template/xb/msgcount",
                "style": {
                    "navigationBarTitleText": "短信数量设置"
                }
            },{
                "path": "pages/template/xb/vipservice",
                "style": {
                    "navigationBarTitleText": "vip服务"
                }
            },{
                "path": "pages/template/xb/vipservice",
                "style": {
                    "navigationBarTitleText": "vip服务"
                }
            },{
                "path": "pages/template/xb/vipservice",
                "style": {
                    "navigationBarTitleText": "vip服务"
                }
            },{
                "path": "pages/template/xb/vipservice",
                "style": {
                    "navigationBarTitleText": "vip服务"
                }
            },{
                "path": "pages/template/xb/vipservice",
                "style": {
                    "navigationBarTitleText": "vip服务"
                }
            },{
                "path": "pages/template/xb/vipservice",
                "style": {
                    "navigationBarTitleText": "vip服务"
                }
            },{
                "path": "pages/template/xb/vipservice",
                "style": {
                    "navigationBarTitleText": "vip服务"
                }
            },{
                "path": "pages/template/xb/vipservice",
                "style": {
                    "navigationBarTitleText": "vip服务"
                }
            },{
                "path": "pages/template/xb/vipservice",
                "style": {
                    "navigationBarTitleText": "vip服务"
                }
            },{
                "path": "pages/template/xb/vipservice",
                "style": {
                    "navigationBarTitleText": "vip服务"
                }
            },{
                "path": "pages/template/xb/vipservice",
                "style": {
                    "navigationBarTitleText": "vip服务"
                }
            },{
                "path": "pages/template/xb/vipservice",
                "style": {
                    "navigationBarTitleText": "vip服务"
                }
            },{
                "path": "pages/template/xb/vipservice",
                "style": {
                    "navigationBarTitleText": "vip服务"
                }
            },{
                "path": "pages/template/xb/vipservice",
                "style": {
                    "navigationBarTitleText": "vip服务"
                }
            },{
                "path": "pages/template/xb/vipservice",
                "style": {
                    "navigationBarTitleText": "vip服务"
                }
            },{
                "path": "pages/template/xb/vipservice",
                "style": {
                    "navigationBarTitleText": "vip服务"
                }
            },{
                "path": "pages/template/xb/vipservice",
                "style": {
                    "navigationBarTitleText": "vip服务"
                }
            },]
        },
        methods: {
            tourl(e) {
                console.log(this.lists[e].path);
                let aurl = "/"+this.lists[e].path;
                //let aurl="/pages/template/xb/roomlist";
                uni.navigateTo({
                    url: aurl
                })

            }
        },


    }
</script>


<style>
    @import "../../../common/uni.css";
</style>
